<?php

/**
 * 大型二维码
 */
const QRCODE_BIG = [

    // 基础部分 ---------------------------------------------
    'size'=> 300,
    'margin'=> 20,
    'foreground'=> ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0],
    'background'=> ['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0],
    'logoSize'=> [80, 80],
    'saveTemp'=> ROOT . '/temps/qrcode/big',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-generate-qrcode',
    'dir'=> 'zh.sgboke.com/big',
    'cdn'=> 'qrcode.cdn.sgboke.com'
];

/**
 * 中型二维码
 */
const QRCODE_MIDDLE = [

    // 基础部分 ---------------------------------------------
    'size'=> 200,
    'margin'=> 10,
    'foreground'=> ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0],
    'background'=> ['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0],
    'logoSize'=> [40, 40],
    'saveTemp'=> ROOT . '/temps/qrcode/middle',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-generate-qrcode',
    'dir'=> 'zh.sgboke.com/middle',
    'cdn'=> 'qrcode.cdn.sgboke.com'
];

/**
 * 小型二维码
 */
const QRCODE_SMALL = [

    // 基础部分 ---------------------------------------------
    'size'=> 100,
    'margin'=> 5,
    'foreground'=> ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0],
    'background'=> ['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0],
    'logoSize'=> [30, 30],
    'saveTemp'=> ROOT . '/temps/qrcode/small',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-generate-qrcode',
    'dir'=> 'zh.sgboke.com/small',
    'cdn'=> 'qrcode.cdn.sgboke.com'
];
